package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 产品类别对象 smes_product_category
 * 
 * @author yanqin
 * @date 2020-11-26
 */
public class SmesProductCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长列 */
    private Long productCategoryId;

    /** 产品类别名称 */
    @Excel(name = "产品类别名称")
    private String productCategoryName;

    /** 删除标志 */
    @Excel(name = "删除标志")
    private String delFlag;

    /** 显示顺序 */
    private String orderNum;
    /** 父部门ID */
    private Long parentId;

    /** 祖级列表 */
    private String ancestors;

    /** 父部门名称 */
    private String parentName;

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public List<SmesProductCategory> getChildren() {
        return children;
    }

    public void setChildren(List<SmesProductCategory> children) {
        this.children = children;
    }

    /** 子部门 */
    private List<SmesProductCategory> children = new ArrayList<SmesProductCategory>();

    public void setProductCategoryId(Long productCategoryId) 
    {
        this.productCategoryId = productCategoryId;
    }

    public Long getProductCategoryId() 
    {
        return productCategoryId;
    }
    public void setProductCategoryName(String productCategoryName) 
    {
        this.productCategoryName = productCategoryName;
    }

    public String getProductCategoryName() 
    {
        return productCategoryName;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productCategoryId", getProductCategoryId())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("productCategoryName", getProductCategoryName())
            .append("orderNum", getOrderNum())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
